/**
 * 
 */
package org.manggis.context;

import org.manggis.io.ClassPathResource;
import org.manggis.io.FileSystemResource;
import org.manggis.io.Resource;
import org.manggis.util.Assert;

/**
 * @author ppacka
 *
 */
public class QueryContext {
	
	public Resource resource;
	
	public QueryContext(Class clazz) {
		Assert.notNull(clazz, "the given class must not be null.");
		
		resource = new ClassPathResource(clazz);
	}

	public QueryContext(String fileSystemPath) {
		Assert.notNull(fileSystemPath, "the given fileSystemPath must not be null.");
		
		resource = new FileSystemResource(fileSystemPath);
	}
}
